From: Brion Vibber Date: Sat, 25 Jun 2005 09:00:49 +0000 (+0000) Subject: Create new old_text and ar_text fields as mediumblob instead of mediumtext. X-Git-Tag: 1.5.0beta1~39 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=ccb91b5a6116a0ea650b0aa3ae037f27728dc760;p=lhc%2Fweb%2Fwiklou.git Create new old_text and ar_text fields as mediumblob instead of mediumtext. These fields may contain compressed binary data. --- diff --git a/maintenance/tables.sql b/maintenance/tables.sql index 4f296d79b6..9feaae5eb8 100644 --- a/maintenance/tables.sql +++ b/maintenance/tables.sql @@ -269,7 +269,7 @@ CREATE TABLE /*$wgDBprefix*/text ( -- Depending on the contents of the old_flags field, the text -- may be convenient plain text, or it may be funkily encoded. - old_text mediumtext NOT NULL default '', + old_text mediumblob NOT NULL default '', -- Comma-separated list of flags: -- gzip: text is compressed with PHP's gzdeflate() function. @@ -301,7 +301,8 @@ CREATE TABLE /*$wgDBprefix*/archive ( -- This field is retained for backwards compatibility, -- so old archived pages will remain accessible after -- upgrading from 1.4 to 1.5. - ar_text mediumtext NOT NULL default '', + -- Text may be gzipped or otherwise funky. + ar_text mediumblob NOT NULL default '', -- Basic revision stuff... ar_comment tinyblob NOT NULL default '',